package com.zixun.repository.request;

import com.zixun.model.request.Request;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Created by Basil on 16/8/23.
 */
public interface RequestRepository extends JpaRepository<Request,Integer>,JpaSpecificationExecutor<Request>{
    public Request findById(Integer id);

    public Request findByIdAndType(Integer id,Integer type);
}
